home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MPW C++ / MPW C++ 3.1 / Examples / CPlusExamples / CPlusShapesApp.make < prev    next >
Text File  |  1990-09-11  |  3KB  |  113 lines

  1. #------------------------------------------------------------------------------
  2. #
  3. #    MultiFinder-Aware Simple Shapes Sample Application
  4. #
  5. #    CPlusShapesApp
  6. #
  7. #    This file: CPlusShapesApp.make    -    Make source
  8. #
  9. #    Copyright © 1988 Apple Computer, Inc.
  10. #    All rights reserved.
  11. #
  12. #
  13. #   There are four main classes in this program. Each of
  14. #   these classes has a definition (.h) file and an
  15. #   implementation (.cp) file.  
  16. #   
  17. #   The TApplication class does all of the basic event
  18. #   handling and initialization necessary for Mac Toolbox
  19. #   applications. It maintains a list of TDocument objects,
  20. #   and passes events to the correct TDocument class when
  21. #   apropriate. 
  22. #   
  23. #   The TDocument class does all of the basic document
  24. #   handling work. TDocuments are objects that are
  25. #   associated with a window. Methods are provided to deal
  26. #   with update, activate, mouse-click, key down, and other
  27. #   events. Some additional classes which implement a
  28. #   linked list of TDocument objects are provided. 
  29. #   
  30. #   The TApplication and TDocument classes together define
  31. #   a basic framework for Mac applications, without having
  32. #   any specific knowledge about the type of data being
  33. #   displayed by the application's documents. They are a
  34. #   (very) crude implementation of the MacApp application
  35. #   model, without the sophisticated view heirarchies or
  36. #   any real error handling. 
  37. #   
  38. #   The TShapesApp class is a subclass of TApplication. It
  39. #   overrides several TApplication methods, including those
  40. #   for handling menu commands and cursor adjustment, and
  41. #   it does some necessary initialization.
  42. #   
  43. #   The TShapesDocument class is a subclass of TDocument. This
  44. #   class contains most of the special purpose code for
  45. #   shape drawing. In addition to overriding several of the
  46. #   TDocument methods, it defines a few additional
  47. #   methods which are used by the TShapesApp class to get
  48. #   information on the document state.  
  49. #
  50. #------------------------------------------------------------------------------
  51.  
  52. AppLibObjs =    ∂
  53.     TApplication.cp.o ∂
  54.     TDocument.cp.o
  55.  
  56. AppLibSrcs =    ∂
  57.     TApplication.cp ∂
  58.     TDocument.cp
  59.  
  60. AppLibHdrs =    ∂
  61.     TApplicationCommon.h ∂
  62.     TApplication.h ∂
  63.     TDocument.h
  64.  
  65. Objs =    ∂
  66.     Shapes.cp.o ∂
  67.     ShapesDocument.cp.o ∂
  68.     ShapesApp.cp.o ∂
  69.  
  70. Srcs =    ∂
  71.     Shapes.cp ∂
  72.     ShapesDocument.cp ∂
  73.     ShapesApp.cp
  74.  
  75. Hdrs =    ∂
  76.     Shapes.h ∂
  77.     ShapesDocument.h ∂
  78.     ShapesAppCommon.h ∂
  79.     ShapesApp.h
  80.  
  81. # turn on/off SADE symbols
  82. SymOpts = -sym off
  83.  
  84. # C++ options
  85. CPlusOptions = -mf {SymOpts}
  86.  
  87. CPlusShapesApp ƒƒ {Objs} CPlusAppLib.o CPlusShapesApp.make
  88.     Link -d -mf -o {Targ} {SymOpts} ∂
  89.         {Objs} ∂
  90.         CPlusAppLib.o ∂
  91.         "{CLibraries}"CPlusLib.o ∂
  92.         "{CLibraries}"CRuntime.o ∂
  93.         "{CLibraries}"StdCLib.o ∂
  94.         "{CLibraries}"CInterface.o ∂
  95.         "{Libraries}"Interface.o
  96.     SetFile {Targ} -t APPL -c 'MOOT' -a B
  97.  
  98. CPlusShapesApp ƒƒ ShapesApp.r ShapesAppCommon.h CPlusShapesApp.make
  99.     Rez -append -o {Targ} ShapesApp.r
  100.  
  101. CPlusShapesApp ƒƒ TApplication.r TApplicationCommon.h CPlusShapesApp.make
  102.     Rez -append -o {Targ} TApplication.r
  103.  
  104. # if ANY headers change, recompile everything
  105. {Objs} ƒƒ {Hdrs} {AppLibHdrs}
  106.  
  107. CPlusAppLib.o ƒƒ {AppLibObjs} CPlusShapesApp.make  
  108.     Lib -o {Targ} {SymOpts} {AppLibObjs}
  109.  
  110. # if AppLib headers change, recompile AppLib Objects
  111. {AppLibObjs} ƒƒ {AppLibHdrs}
  112.  
  113.